//
//  HEDoctorMainSkuffCell.m
//  HealthFamily
//
//  Created by 吴欧 on 2020/11/17.
//  Copyright © 2020 honglutec. All rights reserved.
//

#import "HEDoctorMainSkuffCell.h"

@interface HEDoctorMainSkuffCell ()



@end

@implementation HEDoctorMainSkuffCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self initUI];
    }
    return self;
}

- (void)initUI {
    
    // 头像
    _iconView = [UIImageView new];
    _iconView.image = IMAGE_NAMED(@"noImage");
    _iconView.contentMode = UIViewContentModeScaleAspectFill;
    [self.contentView addSubview:_iconView];
    

    // 姓名
    _titleLb = [UILabel new];
    _titleLb.text = @"-";
    _titleLb.font = DYBlodFont(18);
    [self.contentView addSubview:_titleLb];
    
    // 科室
    _cotentLb = [UILabel new];
    _cotentLb.text = @"暂无信息";
    _cotentLb.font = DYFont(16);
    _cotentLb.textColor = CNavLightBlackColor;
    _cotentLb.numberOfLines = 0;
    [self.contentView addSubview:_cotentLb];

    [_iconView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView).mas_offset(15);
        make.left.equalTo(self.contentView).mas_offset(15);
        make.width.height.height.mas_offset(22);
    }];
    
    [_titleLb mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView).mas_offset(15);
        make.left.equalTo(_iconView.mas_right).mas_offset(10);
        make.right.equalTo(self.contentView.mas_right).mas_offset(-15);
    }];

    [_cotentLb mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(_titleLb.mas_bottom).mas_offset(10);
        make.left.equalTo(self.contentView).mas_offset(15);
        make.right.equalTo(self.contentView.mas_right).mas_offset(-15);
        make.bottom.equalTo(self.contentView.mas_bottom).mas_offset(-15);
    }];
  
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
